<template>

</template>

<script>
import router from "@/router";

export default {
  name: "IndexView",
  created(){
    if(localStorage.getItem("token")!=null){
      if(this.$route.path=='/'){
        this.$router.push("/main")
      }
    }else{
      this.$router.push("/login");
    }
  }
}
</script>

<style scoped>

</style>